import os

def list_files(directory: str):
    entries = [f + '/' if os.path.isdir(os.path.join(directory, f)) else f for f in os.listdir(directory)]
    return {'success': True, 'entries': entries}
